﻿<!DOCTYPE html>
<html>
<head>
<title>丸子妈妈</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<script src="res/jquery.js"></script>
<script src="fun.js"></script>
<link href="style.css" rel="stylesheet" />
<link href="animate.css" rel="stylesheet" />
</head>
<body>


<script>
$(function(){
	delay_1 = .4;
	self_delay_3 = .2;
	
	var arr = [.6,.4,.3,.6,.4,.3];
	var pin = ["xie xie ni","hai zi","zuo ni de","ma ma","fei chang","xing fu"];
	var word = ["谢谢你","孩子，","做你的","妈妈，","非常","幸福。"];
	var str=""
	for(var i=0;i<word.length;i++){
		str = str+"<s><i>"+pin[i]+"</i></s>"+"<em>"+ word[i] +"</em>";
	};
		
	$(".sgroup_text").append(str)
	var arrchange = new Array();
	for(var i=0;i<arr.length;i++){
		if(i==0){
			arrchange[0] = arr[0]
		}
		else{
			arrchange[i]=arr[i]+arrchange[i-1];
		}
		$(".sgroup_text i").eq(i).css({
			"animation-delay":delay_1+(arrchange[i]-arr[i]/2)+"s"
		});
		$(".sgroup_text s").eq(i).css({
			"animation-delay":delay_1+arrchange[i]+"s"
		});
		$(".sgroup_text em").eq(i).css({
			"animation-delay":delay_1+arrchange[i]+"s"
		});
	}
	over_1 = delay_1 + .3
	delay_2 = over_1 + arrchange[arrchange.length - 1] 
	delay_3 = delay_2 + self_delay_3;
	
	j=0;
	
	aaa=280;
	bbb=150;
	
	ccc=1000/aaa;
	print = setInterval(function(){
		if(j>(over_1-.4)*ccc){
			num = Math.floor(Math.random()*8)+1;
			$(".kword dl").eq(num).addClass("click");
			setTimeout(function(){
				$(".kword dl").eq(num).removeClass("click");
			},bbb)
		}
		if(j>(delay_2-.6)*ccc){
			clearInterval(print)
		}
		j++
	},aaa)
	
	
	setTimeout(function(){
		$(".out_box").addClass("keyboard_show");
	},delay_1*1000);
	
	setTimeout(function(){
		$(".out_box").removeClass("keyboard_show");
	},delay_3*1000);
	
	page_total = delay_3+0.4;
	
	setTimeout(function(){
		window.parent.nextAnimation('page23.html');
	},page_total*1000);	
})
</script>

<style>
	.sgroup_text i{animation-name: show; display: inline-block; overflow: hidden;}
	.sgroup_text s{animation-name: hide;display: inline-block; overflow: hidden;}
	.sgroup_text em{animation-name: show;}
	.sgroup_text i{width: 0; height: 0; overflow: hidden; display: inline-block; background-color: #c6daea}
	.sgroup_text s{overflow: hidden; display: inline-block;}
	.sgroup_text *{vertical-align: middle;}
</style>

<div class="out">
	<div class="phone_top"><dl class="time_point_16">20:30</dl></div>
	<div class="out_box share_group_box">
		<div class="share_group">
			<div class="sgroup_top">
				<div class="sgroup_cancel">取消</div>
				<div class="sgroup_confirm">发表</div>
			</div>
			<div class="sgroup_text"></div>
			<div class="sgroup_article">
				<h2><img src="img/timg.jpg" /></h2>
				<h3>太棒了，丸宝薇薇使用自己学到的绘画知识，给生命中第一位老师——妈妈送去了教师节的祝福</h3>
			</div>
		</div>
	</div>
	<div class="out_box"><div class="talk_bottom_box"></div></div>
</div>

</body>
</html>